import 'package:flutter/material.dart';

void main() =>runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return   MaterialApp(
      title: "sdfserqgdf",
      home: Scaffold(
        appBar: AppBar(
          title: Text("x"),
        ),
        body: Center(
            child: Container(
                height: 200.0,
                child:MyList()
            )
        ),
      ),
    );
  }
}

class MyList extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return ListView(
      scrollDirection: Axis.horizontal,
      children: <Widget>[
        Container(color: Colors.lightBlue,width: 180.0,),
        Container(color: Colors.amber,width: 180.0,),
        Container(color: Colors.lightBlue,width: 180.0,),
        Container(color: Colors.lightBlue,width: 180.0,),
      ],

    );
  }
}

